﻿
(function (window) {

    window.runtime = {};

    /* 
    -----运行时设置参数----- 
    */
    window.runtime.clientRunSetting = {

        language: "language",

        /* 设置运行参数 */
        setRunParam: function (param, pvalue) {
            var obj = { key: param, value: pvalue };
            cachestore.clientCacheHelper.setItem("RunSetting", cachestore.cacheStructEnum.dictionary, obj);

            cachestore.clientCacheHelper.saveToLocalStorage("RunSetting", true);
        },

        /* 获取运行参数 */
        getRunParam: function (param) {
            var pvalue = cachestore.clientCacheHelper.getItem("RunSetting", param);

            if (!pvalue) {
                cachestore.clientCacheHelper.readCacheData("RunSetting");
            }
            pvalue = cachestore.clientCacheHelper.getItem("RunSetting", param);
            return pvalue;
        }
    }
    /*-------------------------------*/

})(window);